home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / virution / ficheck5 / prove.bat < prev    next >
DOS Batch File  |  1989-01-01  |  2KB  |  50 lines

  1. echo off
  2. echo Before running this simple proof pgm, a copy of our FICHECK and MFICHECK
  3. echo programs must be on floppy (or microfloppy) disk drive A: (in root directory).
  4. echo Also, to prevent possible viral contamination, FICHECK and MFICHECK are written
  5. echo such that they won't run on anything but a system that booted DOS from FLOPPY
  6. echo diskette. The PROVECRC.EXE program should be on the current drive and directory
  7. echo ---------------------------------------------------------------
  8. echo If you haven't booted DOS from floppy, and you don't have a copy of FICHECK
  9. echo and MFICHECK on floppy drive A, press Ctrl-Break to stop this demonstration,
  10. echo otherwise, strike any key to continue.
  11. echo on
  12. pause
  13. provecrc %1 %2
  14. echo off
  15. if errorlevel 2 goto notaltered
  16. if errorlevel 1 goto nogood
  17. goto showit
  18. :notaltered
  19. echo File "%1" was unable to be altered and still maintain the same CRC.
  20. echo Please try again with another file.
  21. goto done
  22. :showit
  23. echo off
  24. echo ****** Proof that CRC checking alone is inadequate ****** >proof
  25. echo --------------------------------------------------------------- >>proof
  26. echo    Prove that "%1" and "%2" show identical CRC's                >>proof
  27. echo --------------------------------------------------------------- >>proof
  28. echo on
  29. a:\ficheck  /s=%1 >>proof
  30. if errorlevel 1 goto nogood
  31. a:\ficheck  /s=%2 >>proof
  32. if errorlevel 1 goto nogood
  33. echo off
  34. echo --------------------------------------------------------------- >>proof
  35. echo    Prove that "%1" and "%2" show different MCRC's               >>proof
  36. echo --------------------------------------------------------------- >>proof
  37. echo on
  38. a:\mficheck /s=%1 >>proof
  39. if errorlevel 1 goto nogood
  40. a:\mficheck /s=%2 >>proof
  41. if errorlevel 1 goto nogood
  42. echo off
  43. echo ************** Please view the file "proof" to see results ************
  44. goto done
  45. :nogood
  46. echo Something went wrong - make sure you placed FICHECK.EXE and MFICHECK.EXE on
  47. echo a DOS bootable diskette, and that you booted from that diskette. Also, make
  48. echo sure you supplied an INFILE and OUTFILE name to start this proof process.
  49. :done
  50.